﻿ @model Wicresoft.UnifyShow.Business.SiteBranchAndDeviceTypeAlertModel
 @{ Wicresoft.UnifyShow.Business.SiteBranchAndDeviceTypeAlertModel siteBranchAndDeviceTypeAlert = Model;}
<div class="index_pt_bg">
    <table class="talbe_gray" width="100%" height="160" border="0" cellpadding="0" cellspacing="0">
        <tbody>
           @* <tr>
                <td></td>
                <td colspan="2">
                    @siteBranchAndDeviceTypeAlert.SiteBranch.Alias
                </td>
            </tr>
            <tr>
                <td></td>
                    <td>数量</td>
                    <td>健康度</td>
            </tr>
           @foreach (Wicresoft.UnifyShow.Business.DeviceTypeAlertModel deviceTypeAlert in siteBranchAndDeviceTypeAlert.DeviceTypeAlert)
             {
               <tr>
                <td>
                    @deviceTypeAlert.Type
                </td>
                <td>
                    @deviceTypeAlert.Count
                </td>
                <td>
                    @deviceTypeAlert.AlertCount
                </td>
                
            </tr>
             }*@
           <tr>
               <td>地市</td>
               <td>类型</td>
               @foreach (Wicresoft.UnifyShow.Business.DeviceTypeAlertModel deviceTypeAlert in siteBranchAndDeviceTypeAlert.DeviceTypeAlert)
               {
                   <td height="25">@deviceTypeAlert.Type</td>
               }
           </tr>
           <tr>
               <td rowspan="2">
                    @siteBranchAndDeviceTypeAlert.SiteBranch.Alias
               </td>
               <td>数量</td>
               @foreach (Wicresoft.UnifyShow.Business.DeviceTypeAlertModel deviceTypeAlert in siteBranchAndDeviceTypeAlert.DeviceTypeAlert)
               {
                   <td height="25">@deviceTypeAlert.Count</td>
               }
           </tr>
           <tr>
              <td>健康度</td>
               @foreach (Wicresoft.UnifyShow.Business.DeviceTypeAlertModel deviceTypeAlert in siteBranchAndDeviceTypeAlert.DeviceTypeAlert)
               {
                   if (deviceTypeAlert.AlertCount > 0)
                   { <td height="25"><i class="right_title_imptant_red ui-icons">@deviceTypeAlert.AlertCount</i></td>}
                   else
                   { <td height="25"><i class="right_title_imptant_green ui-icons">@deviceTypeAlert.AlertCount</i></td>}
                   
               }
           </tr>
        </tbody>
    </table>
</div>
